function queryPointByPosition(position, callback) {
  let pointObj = new Zondy.Object.Point2D(position[0], position[1])
  //可以添加一个模糊半径
  pointObj.nearDis = 0.001
  var queryStruct = new Zondy.Service.QueryFeatureStruct()
  //是否包含几何图形信息
  queryStruct.IncludeGeometry = true
  //是否包含属性信息
  queryStruct.IncludeAttribute = true
  //是否包含图形显示参数
  queryStruct.IncludeWebGraphic = false
  //指定查询规则
  var rule = new Zondy.Service.QueryFeatureRule({
    //是否将要素的可见性计算在内
    EnableDisplayCondition: false,
    //是否完全包含
    MustInside: false,
    //是否仅比较要素的外包矩形
    CompareRectOnly: false,
    //是否相交
    Intersect: true,
  })
  //实例化查询参数对象
  var queryParam = new Zondy.Service.QueryParameter({
    r: Math.random(),
    geometry: pointObj,
    resultFormat: 'json',
    struct: queryStruct,
    rule: rule,
  })
  // //表示从第一页开始 查询1个
  queryParam.pageIndex = 0
  // //设置查询要素数目
  queryParam.recordNumber = 20
  var queryService = new Zondy.Service.QueryDocFeature(
    queryParam,
    '地图文档',
    2,
    {
      ip: 'localhost',
      port: '6163',
    }
  )
  //执行查询操作，querySuccess为查询回调函数
  queryService.query(callback)
}
export default queryPointByPosition
